package com.mxpio.erp.common.technology.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.annotation.Dict;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @Author : wpp
 * @Datetime : 2023/7/28 10:27
 * @Desc :
 * @Modor :  Modifytime:
 * @modDesc :
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_TECHNOLOGY_PROCESSDEVICE")
@Schema(description="工序信息参数-设备(计量器具)")
public class ProcessDevice extends BaseEntity {

    private static final long serialVersionUID = 1L;
    @Id
    @Generator
    @Column(name = "ID_", updatable = false)
    private String id;

    @Column(name = "PROCESS_CODE_", updatable = false)
    @Schema(description  = "工序编码")
    private String processCode;

    @Column(name = "RESOURCE_CODE_" )
    @Schema(description = "资源编码")
    private String resourceCode;

    @Column(name = "RESOURCE_NAME_" )
    @Schema(description = "资源名称")
    private String resourceName;

    @Column(name = "RESOURCE_TYPE_" )
    @Schema(description = "资源类型")
    @Dict(dicCode = "MB_ERP_TECHNOLOGY_RESOURCE_TYPE")
    private String resourceType;

    @Column(name = "RESOURCE_NUM_" )
    @Schema(description = "资源数量")
    private int resourceNum;

}
